import { BaseQry, BaseView, CommonEnum } from '@/types/global-business';
import { TableColumnData } from '@arco-design/web-vue/es/table/interface';

export interface WxAppView extends BaseView {
  componentAppId?: string;
  appType?: CommonEnum;
  appId?: string;
  appName?: string;
  appPrincipal?: string;
  expand?: any;
}

export interface WxAppPageQry extends BaseQry {
  componentAppId?: string;
  appType?: any;
  keyword?: string;
}

export interface WxAppQry extends BaseQry {
  componentAppId?: string;
  appId?: string;
}

export const WX_APP_COLUMNS: TableColumnData[] = [
  {
    title: '序号',
    dataIndex: 'idx',
    width: 60,
    fixed: 'left',
  },
  {
    title: '应用',
    dataIndex: 'appId',
    width: 200,
  },
  {
    title: '所属主体',
    dataIndex: 'appPrincipal',
    width: 200,
  },
  {
    title: '代码版本',
    dataIndex: 'codeVersion',
    width: 200,
  },
  {
    title: '操作',
    dataIndex: 'action',
    width: 200,
    fixed: 'right',
  },
];
